-- GENERATED SPELL FOR [XD-175 Compactobot] --


function spell0_34271(pUnit, Event) --@Trash Compactor,n/a--
pUnit:FullCastSpellOnTarget(65073,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34271', 665, 1)
end

function spell1_34271(pUnit, Event) --@Trash Compactor,n/a--
pUnit:FullCastSpellOnTarget(65106,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34271', 522, 1)
end

function Sorts_34271(pUnit, Event)
local choix_sorts_34271 = math.random(0, 1)
if choix_sorts_34271 == 0 then
pUnit:RegisterEvent('spell0_34271', 1, 1)
end
if choix_sorts_34271 == 1 then
pUnit:RegisterEvent('spell1_34271', 1, 1)
end
end

function mob34271_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34271', math.random(1500, 3000), 1)
end

function mob34271_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34271_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34271_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34271, 1, 'mob34271_Action')
RegisterUnitEvent(34271, 2, 'mob34271_Leave')
RegisterUnitEvent(34271, 3, 'mob34271_Kill')
RegisterUnitEvent(34271, 4, 'mob34271_Die')
